package com.Stream.A01StreamLiu;

import java.util.ArrayList;
import java.util.Collections;

public class A06_Stream {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list, "张无忌", "周芷若", "赵敏", "张强", "张三丰", "张翠山", "张良", "王二麻子", "谢广坤");

        /*
        * filter 过滤
        * limit  获取前几个
        * skip   跳过前几个
        * */

        /*
        * 获取
        *   张强 张三丰 张翠山
        * */
        list.stream().skip(3).limit(3).forEach(e -> System.out.println(e));
    }
}
